package org.example.myleet.p1122;

public class Main {
    public static void main(String[] args) {
        //case 1
//        int[] arr1 = new int[]{2,3,1,3,2,4,6,7,9,2,19};
//        int[] arr2 = new int[]{2,1,4,3,9,6};
        //case 2
//        int[] arr1 = new int[]{2};
//        int[] arr2 = new int[]{2};
        //case 3
//        int[] arr1 = new int[]{};
//        int[] arr2 = new int[]{};
        //case 4 [21,11,26,20,1,18,34,50]
        int[] arr1 = new int[]{26,21,11,20,50,34,1,18};
        int[] arr2 = new int[]{21,11,26,20};
        Solution solution = new Solution();
        int[] result = solution.relativeSortArray(arr1, arr2);
        System.out.println(result);
    }
}
